exports.keys = 'lzq'; // cookie 签名密钥

exports.view = {
    defaultViewEngine: 'nunjucks',
    mapping: {
        '.tpl': 'nunjucks',
    },
}; // 视图配置

exports.news = {
    pageSize: 5, // 每页显示几条新闻
    serverUrl: 'https://hacker-news.firebaseio.com/v0' // 服务器地址
};

// config/config.default.js
// add middleware robot
exports.middleware = [
    'robot'
];

// robot's configurations
exports.robot = {
    ua: [
        /Baiduspider/i
    ]
};

// post请求要想成功  需要关闭 csrf
exports.security = {
    csrf: {
        enable: false,
    },
}